Single dimensional arrays | how to initialize and process